package com.zmyuan.quartz.db.demo;

import org.quartz.JobDetail;
import org.quartz.Scheduler;
import org.quartz.SchedulerFactory;
import org.quartz.SimpleScheduleBuilder;
import org.quartz.Trigger;
import org.quartz.TriggerBuilder;

import static org.quartz.JobBuilder.newJob;

/**
 * Created by zhudebin on 16/7/19.
 */
public class Demo2 {

    public static void main(String[] args) throws Exception {

        SchedulerFactory schedFact = new org.quartz.impl.StdSchedulerFactory();

        Scheduler sched = schedFact.getScheduler();


        sched.start();

        System.out.println(sched.getMetaData().getSummary());


        Thread.sleep(10000);

        sched.shutdown();

    }

}


